package com.sicpa.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * FtpConfig
 * @author lwf
 */
@Component
@ConfigurationProperties(prefix = "ftp")
public class FtpConfig {

    private String hostname;

    private Integer port;

    private String username;

    private String pwd;

    private Integer defaultTimeoutSecond;

    private Integer connectTimeoutSecond;

    private  Integer dataTimeoutSecond;

    private  Integer connectionSize;

    private  String rootDirectory;

    private Boolean enableAnonymous;

    public String getHostname() {
        return hostname;
    }

    public void setHostname(String hostname) {
        this.hostname = hostname;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getDefaultTimeoutSecond() {
        return defaultTimeoutSecond;
    }

    public void setDefaultTimeoutSecond(Integer defaultTimeoutSecond) {
        this.defaultTimeoutSecond = defaultTimeoutSecond;
    }

    public Integer getConnectTimeoutSecond() {
        return connectTimeoutSecond;
    }

    public void setConnectTimeoutSecond(Integer connectTimeoutSecond) {
        this.connectTimeoutSecond = connectTimeoutSecond;
    }

    public Integer getDataTimeoutSecond() {
        return dataTimeoutSecond;
    }

    public void setDataTimeoutSecond(Integer dataTimeoutSecond) {
        this.dataTimeoutSecond = dataTimeoutSecond;
    }

    public Integer getConnectionSize() {
        return connectionSize;
    }

    public void setConnectionSize(Integer connectionSize) {
        this.connectionSize = connectionSize;
    }

    public String getRootDirectory() {
        return rootDirectory;
    }

    public void setRootDirectory(String rootDirectory) {
        this.rootDirectory = rootDirectory;
    }

    public Boolean getEnableAnonymous() {
        return enableAnonymous;
    }

    public void setEnableAnonymous(Boolean enableAnonymous) {
        this.enableAnonymous = enableAnonymous;
    }
}
